<?php 

if($isGroup)
$iterList = $cquery->getContentByCatLimit($TW_LIST, 0,$TW_LIST_LIMIT);
else
$iterList = $cquery->getContentDetails($TW_LIST);
?>
<script type="text/javascript">
txt  = Array();
<?php  $cnt=0;

if(!$isGroup){
foreach($iterList as $row){
    $url = $fxn->processURL("page",$row["content_id"],$row["page_title"],$row["direct_link"]);
    ?>
        txt[0]=["<?php echo strip_tags($row["page_title"]);?>","<?php echo $url; ?>"];
    <?php


}

$script.="
            changeTxt(0,0,\"".$TW_DIV."\");
            ";
}else{
foreach($iterList as $row){

 //$extraI = $fxn->pageExtraInfo(3, $row["date_created"], $row["last_modified"], "short");
$url = $fxn->processURL("page",$row["content_id"],$row["page_title"],$row["direct_link"]);
?>
txt[<?php echo $cnt; $cnt++;?>] = ["<?php echo " ".$row["page_title"]?>","<?php echo $url; ?>"];
<?php
    	$script.="
            changeTxt(0,0,\"".$TW_DIV."\");
            ";
     }}?>
</script>